package com.bw.service;

import com.bw.dao.infoDao;
import com.bw.domain.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

//servi 分层方法
@Service
public class infoServiceImpl implements infoService {
    @Autowired
    infoDao infoDao;
    @Override
    public List<Info> getList() {
        return infoDao.getList();
    }

    @Override
    public List<Info> getList2(String address, String lname) {
        return infoDao.getList2(address,lname);
    }

    @Override
    public int add(Info info) {
        return infoDao.add(info);
    }

    @Override
    public int del(int iid) {
        return infoDao.del(iid);
    }
}
